package com.platform.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.platform.enums.RoleType;
import com.platform.comm.enums.YnEnum;
import lombok.Data;

import java.io.Serializable;

/**
 * Description: 角色-DTO
 *
 * @author libin Created on 2019/7/16
 **/
@Data
public class RoleDto implements Serializable {

    private static final long serialVersionUID = 8327832941375953897L;
    private String name;

    private String code;

    private RoleType roleType;

    private YnEnum delFlag;

    private String desc;

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String domain;

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
    private String shared;

    private String route;

    private String parentId;

    @JsonProperty(access = JsonProperty.Access.READ_ONLY)
    private String parentName;

}
